package com.vaha.domain.request;import com.cyber.domain.entity.PagingRequest;import com.vaha.domain.entity.Product;import lombok.EqualsAndHashCode;import lombok.Getter;import lombok.Setter;import org.springframework.beans.BeanUtils;import javax.validation.constraints.NotBlank;import javax.validation.constraints.NotNull;@Getter@Setter@EqualsAndHashCode(callSuper = true)public class ProductRequest extends PagingRequest {    /**     * 名称     */    private String name;    /**     * 编码     */    private String code;    /**     * 类型     */    @NotNull    private Integer type;    /**     * 标签     */    private String label;    public Product toEvent(String tenantCode) {        Product product = new Product();        BeanUtils.copyProperties(this, product);        product.setTenantCode(tenantCode);        return product;    }}